package com.com.Test;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class demo1 {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress localHost=InetAddress.getLocalHost();
        System.out.println(localHost);
       // InetAddress host2 = InetAddress.getByName("XZC");
      //  System.out.println(host2);

    }
}
